package java6681.borrow;

import java.util.Objects;

public class Book6681 {
    private String name;

    public Book6681() {
    }

    public Book6681(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Book6681 book6681 = (Book6681) o;
        return Objects.equals(name, book6681.name);
    }

}
